package ps.yj.y1j0.data;

/**
 * Created with IntelliJ IDEA.
 * User: yanjun
 * Date: 13-1-12
 * Time: 下午11:02
 * To change this template use File | Settings | File Templates.
 */
public class YJWhere {
    /**
     * Like
     */
    public static final String LK = " LIKE ? ";
    /**
     * Equal
     */
    public static final String EQ = " = ? ";
    /**
     * Greater Than
     */
    public static final String GT = " > ? ";
    /**
     * Less Than
     */
    public static final String LT = " < ? ";
    /**
     * Greater Equal
     */
    public static final String GE = " >= ? ";
    /**
     * Less Equal
     */
    public static final String LE = " <= ? ";
    /**
     * is not
     */
    public static final String IN = " is not ";

    private String key;
    private Object value;
    private String type;
    private Boolean isAnd;

    public YJWhere(String key, Object value, String type, Boolean isAnd) {
        setKey(key);
        setValue(value);
        setType(type);
        setAnd(isAnd);
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Boolean getAnd() {
        return isAnd;
    }

    public void setAnd(Boolean and) {
        isAnd = and;
    }
}
